package cn.gdsdxy.service.impl;

import cn.gdsdxy.dao.GoodsDao;
import cn.gdsdxy.pojo.Goods;
import cn.gdsdxy.pojo.Student;
import cn.gdsdxy.service.GoodsService;
import com.mchange.v2.c3p0.test.ListTablesTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServicelmpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;
    public List<Goods> getAllGoods(){
        return goodsDao.getAllGoods();
    }
    public int addGoods(Goods goods){
        return goodsDao.addGoods(goods);
    }
    public int deleteGoods(int id){
        return goodsDao.deleteGoods(id);
    }
    public int updataGoods(Goods goods){
        return goodsDao.updataGoodS(goods);
    }
    public List<Goods> getidGoods(int id){
        return goodsDao.getidGoods(id);
    }


}
